#include <glm\glm.hpp>
#include "Node.h"
#include <string>
#include "GLObject.h"

class ObjectNode :Node
{
public:
	ObjectNode(GLObject obj, std::vector<int> points);

	~ObjectNode(void);

	/**
	Draw the object with OpenGL.
	Should be drawn in model coordinates.
	**/
	void draw(std::stack<glm::mat4> &transfstack);
private:
	//the thing to draw
	GLObject obj;
	GLuint ambientcol;
	GLuint diffusecol;
	GLuint specularcol;
	GLuint emissioncol;
	GLuint shininesscol;
	
		//how to draw it
	std::vector<int> points;

};

